import React from 'react';
import { connect } from 'react-redux';
import MyCustomerItem from '../components/Home/myCustomerItem';

class MyCustomerContainers extends React.Component {
  render() {
    return (
      <MyCustomerItem {...this.props} />
    );
  }
}

export default connect((state) => {
  const { collectCode, myCustomerData } = state.saleChanceReducer;
  const { stageObj, userIdStore } = state.UserStageReducer;
  const { visit } = state.MyCustomerDetailReducer;
  return {
    collectCode,
    stageObj,
    myCustomerData,
    userIdStore,
    visit,
  };
})(MyCustomerContainers);
